package com.apeli.spring;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 单例标识
 *
 * @author liming
 * @date 20230604
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Scope {
    Type value() default Type.SINGLETON;

    enum Type {
        SINGLETON, PROTOTYPE;
    }
}
